<style tyle="text/css">
    .modal-lg {
      width: 70%;
    }
    
  </style>
  <div class="modal-header">
    <h4 class="modal-title">义卖商品</h4>
  </div>
  <div class="modal-body">
  
    <form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
  
        <div class="form-group">
            <label class="col-xs-3 control-label">选择产品</label>
            <div class="col-lg-6">
                <ui-select ng-model="opeinfo.product" theme="bootstrap" ng-if="!opeinfo.product_name">
                    <ui-select-match placeholder="产品...">{{$select.selected.product_name}}</ui-select-match>
                    <ui-select-choices repeat="item in ProductList | filter: $select.search">
                        <span ng-bind-html="item.product_name | highlight: $select.search"></span>
                        【
                        <span ng-bind-html="item.product_code | highlight: $select.search"></span>】
                    </ui-select-choices>
                </ui-select>
            </div>
            <div class="col-lg-6" >
                <input type="text" class="form-control" ng-model="opeinfo.product_name" ng-if="opeinfo.product_name" readonly>
            </div>
        </div>
  
        <div class="form-group" >
            <label class="col-xs-3 control-label">捐赠人</label>
            <div class="col-lg-6">
                <input type="text" class="form-control" ng-model="opeinfo.voluntaryact_people" ng-if="!opeinfo.openstate" placeholder="例:张三">
            </div>
            <div class="col-lg-6" >
                <input type="text" class="form-control" ng-model="opeinfo.voluntaryact_people" ng-if="opeinfo.openstate" readonly>
            </div>
        </div>
  
        <div class="form-group" >
            <label class="col-xs-3 control-label">资金用途</label>
            <div class="col-lg-6">
                <input type="text" class="form-control" ng-model="opeinfo.purpose" ng-if="!opeinfo.openstate" placeholder="例:公益">
            </div>
            <div class="col-lg-6" >
                <input type="text" class="form-control" ng-model="opeinfo.purpose" ng-if="opeinfo.openstate" readonly>
            </div>
        </div>
  
  
     
       
  
    </form>
  
  </div>
  
  <div class="modal-footer">
      <button class="btn btn-success" type="button"  ng-if="!opeinfo.openstate" ng-click="save()">确定</button>
      <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
  </div>
  
  